<div class="page-sidebar-wrapper">
	<div class="page-sidebar navbar-collapse">
		<ul class="page-sidebar-menu" data-auto-scroll="true" data-slide-speed="200">
			<?php $ci = get_instance();
				  $uriPath = $ci->uri;
			?>
			<?php foreach ($menu as $vv):?>
			<?php 
			?>
			<li <?php if($vv['selected']):?>class="active"<?php endif;?>>
				<a href="<?php echo ! empty($vv['sub_menu']) ? 'javascript:void(0);' : getUrl($vv['url']);?>">
					<i class="<?php echo $vv['icon'];?>"></i>
					<span class="title">
						<?php echo $vv['menu_name'];?>
					</span>
					<?php if( ! empty($vv['sub_menu'])):?>
					<span class="arrow <?php if($vv['selected']):?>open<?php endif;?>"></span>
					<?php endif;?>
				</a>
				<?php if( ! empty($vv['sub_menu'])):?>
				<ul class="sub-menu">
						<?php foreach ($vv['sub_menu'] as $vvv):?>
						<li <?php if($vvv['selected']):?>class="active"<?php endif;?>>
							<a href="<?php echo getUrl($vvv['url']);?>">
								 <?php echo $vvv['menu_name'];?>
							</a>
						</li>
						<?php endforeach;?>
				</ul>
				<?php endif;?>
			</li>
			<?php endforeach;?>
		</ul>
	</div>
</div>
